<!DOCTYPE html>
<HTML><head><title>test_mysqli.php</title></head>
<body><pre><?php

require('common/common.php');

$db = db_connect();

/*
$account_type_table = new MysqlTable($db,'account_type');
var_dump($account_type_table);
$new_row = new MysqlRow($account_type_table,array(
    'name'=>'Cashley Judd'
    ));
var_dump($new_row);

$row = $account_type_table->fetch_row_by_id(1);
$row->set('name','Cash Johnny');
var_dump($row);

$account_type_table->save_rows(array($new_row,$row));

$rows = $account_type_table->fetch_rows();
var_dump($rows);

$db->close();
*/
$algs = hash_algos();
var_dump($algs);

User::initialize($db);
//$user = User::load_by_field('name','oppus');
$user = User::authenticate();
//echo $user->reset_pw();
$query = "SELECT * FROM account_type";
$q = new MysqlQuery($db,$query,true);
$array = $q->get_array();
var_dump($array);


?></pre></body>